import random

words = ['python','jumble','easy','difficult','answer','continue','phone','game']
word = random.choice(words)
# print(word)
new_word = ''
while word:
    position = random.randrange(len(word))
    new_word += word[position]
    word = word[:position] + word[(position+1):]
print('乱序后的单词：',new_word)

print('Welcome to "Guess word game" !'.strip())
# h = u'Hello'
# print(h)
# l = 'l'
# print(h.count(l,0,40))  # (1,0,len(h)-1)
a = 'national day'
print(a.count('a',2,20))












